package com.cskt.petproject178.mapper;

import com.cskt.petproject178.pojo.entity.Comment;
import com.cskt.petproject178.pojo.param.CommodityListParam;
import com.cskt.petproject178.pojo.vo.CommentVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommentMapper {
    int deleteByPrimaryKey(Long id);

    int insertSelective(Comment record);

    Comment selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Comment record);


    List<CommentVO> selectCommentParam(
            @Param(value = "spuId") Long spuId,
            @Param(value="isPic") Integer isPic,
            @Param(value="currentPage") Integer currentPage,
            @Param(value="pageSize") Integer pageSize
    );


    Integer selectCommentParamCount(
            @Param(value = "spuId") Long spuId,
            @Param(value="isPic") Integer isPic
    );
}